﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Untitled Page</title>  
    <script language="javascript">
        function fncGetHeight()
        {
            alert(iframe1.height);
            iframe1.height = "710px";
            iframe1.setAttribute("height", (screen.height - 90));
            
            alert(iframe1.height);
        }
        
        function autoIframe(frame)
        {   
            try
            {   
                innerDoc = (frame.contentDocument) ? frame.contentDocument : frame.contentWindow.document;   
                frame.height = innerDoc.body.scrollHeight + 50;
            }
            catch(err)
            {   
                alert(err);   
                window.status = err.message;   
            }   
        }          
    </script>     
    
        
</head>
<body>
    <iframe id='frmameBanner' src="/Banner/BannerTopo.aspx" name='Banner' frameborder="0" border="0" width=100% height=90px  scrolling=no style="position:absolute; top:0px; left:0px"></iframe>
    <iframe id='iframe1' src="/Visualizar/comunidade.aspx?idComunidade=1" onload="autoIframe(this)" name='Banner' frameborder="0" border="0" scrolling=yes width=100% style="position:absolute; top:90px; left:0px"></iframe>
</body>
</html>
